import React, { Component } from 'react'
import { Route, Switch } from "react-router-dom"

import About from "./pages/About" // 路由组件
import Home from "./pages/Home"   // 路由组件
import Header from "./component/Header" // 一般组件
import Nav from "./component/Nav"       // 一般组件

export default class App extends Component {
    render() {
        return (
            <div>
                <div className="row">
                    <Header a="asfd" />
                </div>
                <div className="row">
                    <Nav />
                    <div className="col-xs-6">
                        <div className="panel">
                            <div className="panel-body">
                                <Switch>
                                    <Route path="/atguigu/about" component={About} />
                                    <Route path="/atguigu/home" component={Home} />
                                </Switch>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        )
    }
}
